package os

import (
	"path"
	"runtime"
	"strings"
)

//获取当前文件绝对路径
func CurrAbsoluteFilePath() string {
	_, file, _, _ := runtime.Caller(0)
	return file
}

//返回文件名(不包含后缀)
func PathFileName(fileName string) string {
	baseFileName := path.Base(fileName)
	return strings.TrimSuffix(baseFileName, path.Ext(baseFileName))
}
